package cn.ibizlab.odoo.core.odoo_maintenance.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_maintenance.domain.Maintenance_team;
import cn.ibizlab.odoo.core.odoo_maintenance.filter.Maintenance_teamSearchContext;

/**
 * 实体[Maintenance_team] 服务对象接口
 */

public interface IMaintenance_teamService{
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     void updateBatch(List<Maintenance_team> maintenance_teams, int batchSize) ;
     boolean remove(Integer id) ;
     boolean update(Maintenance_team maintenance_team) ;
     void createBatch(List<Maintenance_team> maintenance_teams, int batchSize) ;
     Maintenance_team get(Integer id) ;
     Maintenance_team get(Maintenance_team maintenance_team) ;
     boolean create(Maintenance_team maintenance_team) ;

    /**
     * 查询集合 默认查询
     */
    Page<Maintenance_team> searchDefault(Maintenance_teamSearchContext context) ;

    /**
     * 根据公司查询
     */
     Page<Maintenance_team> selectByOdoo_company(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Maintenance_team> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Maintenance_team> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Maintenance_team convert2Domain(cn.ibizlab.odoo.core.client.model.Imaintenance_team model ,Maintenance_team domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Imaintenance_team convert2Model(Maintenance_team domain , cn.ibizlab.odoo.core.client.model.Imaintenance_team model);

}
